pp108 : onsoapfault Event

onsoapfault Event

 


This event is fired when the SOAP message received contains a backend error.

Syntax

Inline HTML

<div cordysType="wcp.library.data.BusDataIsland" id="busdataislandID" onsoapfault="handler()"...>
...
</div>

Event property

busdataislandID.onsoapfault = handler

Event Information

To Invoke

N/A.

Default Action

Displays the SOAP fault and initiates any action associated with this event.

Event Object Properties

Property

Description

error

Read-only. Object that contains the <error> node in the response XML.

errorText

Read-only. String that contains the error message in the response XML.

faultActor

String that holds the fault actor specified in the SOAP Fault.

faultCode

String that contains the type of the fault happened with the request. It can be a Read or a Write error.

faultDetail

Refers to the<detail>node of the SOAP Fault.

faultString

String that contains the exact error that has happened with the request.

httpStatusCode

String that denotes the HTTP status of a SOAP fault, when it occurs.

response

Read-only. Object that contains the response XML from the gateway.

showError

Boolean that sets or retrieves one of the following values.

  • true- Default. SOAP fault is shown by the busdataisland.
  • false- SOAP fault is not shown by the busdataisland.

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Note: The SOAP:Fault is shown by the busdataisland through a generic HTML page, which shows the fault description.

See Also

busdataisland